package com.aaa.util;

/**
 * @author ：admin
 * @date ：Created in 2022/6/2 15:17
 * @description：定义枚举类型的返回状态
 * @modified By：
 */
public enum RetStatusEnum {
    /**
     * 成功
     */
    SUCCESS(0, "操作成功"),
    /**
     * 失败
     */
    FAIL(1, "操作失败");
    private int code;
    private String message;

    RetStatusEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
